'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: tool_entities.py
* @Time: 2025/11/11
* @All Rights Reserve By Brtc
'''
from pydantic import BaseModel, Field


class ToolEntity(BaseModel):
    """Api工具实体信息, 记录了创建Langchian工具所需的配置信息"""
    id:str = Field(default="", description="工具提供者的id")
    name:str = Field(default="", description="API工具名称")
    url:str = Field(default="", description="API工具发起请求的URL地址")
    method: str = Field(default="get", description="API工具发起请求的方法")
    description: str = Field(default="", description="API工具发起请求描述信息")
    headers: list[dict] = Field(default=list, description="API工具发起请求的头信息")
    parameters: list[dict] = Field(default=list, description="API工具发起请求的参数列表信息")
